Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add a options to fix ignore "expire within" error #148

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

lijialong1313
Copy link
Contributor

This PR is want to be fix about this:

save

This error is the same as "the password will expire within" but not ignore. So I write this to let different country use different localized oracle databases can ignore as same as the English version.

I am sorry that I do't use this in a long time, so make some error about the old pr.

This error is the same as "the password will expire within" but not ignore. So I write this to let different country use different localized oracle databases can ignore as same as the English version.
fix format
@yajra
Copy link
Owner

yajra commented Nov 18, 2024

Thank you for the PR. Can you please provide some snippets on how to use this feature? I think the ignore error messages will be added in the config?

@lijialong1313
Copy link
Contributor Author

Thank you for the PR. Can you please provide some snippets on how to use this feature? I think the ignore error messages will be added in the config?

Yes, It will be added in the options like this.

            'options' => [
                'ignore_error_messages'=>[
                    'the password will expire within',
                    '天之后口令'
                ]
            ],

In some cases that the Oracle Exception may be displayed as more than one language, so I set this config as an array. The full config can be like the image below.

02

src/Pdo/Oci8.php Outdated Show resolved Hide resolved
Rename the line 151 $flag to $throwError
@yajra yajra changed the title Add a options to fix ignore "expire within" error feat: Add a options to fix ignore "expire within" error Nov 28, 2024
@yajra yajra merged commit da22245 into yajra:master Nov 28, 2024
1 check passed
@yajra
Copy link
Owner

yajra commented Nov 28, 2024

Release on https://github.com/yajra/pdo-via-oci8/releases/tag/v3.5.0 🚀 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants